#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>
#define PI 3.14159265
double Cal(int x, int y)
{
	return atan2(y,x)* 180 / PI;
}
int main()
{           
	int x, y;
	int k = 1;
	while (scanf("%d%d", &x, &y) == 2)
	{
		printf("Case %d: %.2lf\n", k++,Cal(x,y));
	}
	return 0;
}